package com.cxyzy.codeeditordemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        editor.setText("<TextView android:layout_height=\"wrap_content\" android:text=\"hello\" android:layout_width=\"wrap_content\" />",1)
    }
}
